import { createApp } from 'vue'
import App from './App.vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入路由对象
import router from '@/router'

// 注册elementUI组件
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn
})

// 注册路由
app.use(router)

// 渲染页面再app根节点中
app.mount('#app')
